//
//  HRZGoodsService.h
//  EMarket
//
//  Created by 石头 on 2018/7/30.
//  Copyright © 2018 好日子. All rights reserved.
//

#import "HRZBaseService.h"

@class HRZGoodsClassifyBaseModel;
@class HRZGoodsClassifyContentModel;
@class HRZGoodsClassifyDetailModel;
@class HRZGoodsDetailModel;
@class HRZGoodsClassifyListSearchModel;

@interface HRZGoodsService : HRZBaseService


/**
 获取商品分类（基础）

 @param success 成功 -> 数组
 @param failure 失败
 */
+ (void)getGoodsBaseClassifySuccess:(void (^)(NSArray <HRZGoodsClassifyBaseModel*>*classfyArray))success
                            failure:(void (^)(NSString *error))failure;


/**
 获取商品分类（二级）

 @param classifyId 商品分类ID
 @param success 成功
 @param failure 失败
 */
+ (void)getGoodsClassifyContentByClassifyId:(NSString *)classifyId
                             success:(void (^)(HRZGoodsClassifyContentModel *classfyModel))success
                             failure:(void (^)(NSString *error))failure;




/**
 获取商品分类（详情）

 @param model 搜索model
 @param success 成功
 @param failure 失败
 */
+ (void)getGoodsListByClassifyModel:(HRZGoodsClassifyListSearchModel *)model
                            success:(void (^)(NSArray <HRZGoodsClassifyDetailModel*>*goodsArray))success
                            failure:(void (^)(NSString *error))failure;


/**
 获取商品详情

 @param goodsId 商品ID
 @param success 成功
 @param failure 失败
 */
+ (void)getGoodsDetailByGoodsId:(NSString *)goodsId
                        success:(void (^)(HRZGoodsDetailModel * goodsModel))success
                        failure:(void (^)(NSString *error))failure;

@end
